<?php /* Smarty version 2.6.26, created on 2014-10-08 15:24:21
         compiled from D:/wamp/www/wenda/Index/Tpl/List/index.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>问答系统</title>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../common/head.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<link rel="stylesheet" href="<?php echo @__PUBLIC__; ?>
/Css/list.css" />
	<style type="text/css">
	#center a.son_cate_none{
		color:black;
		cursor:default;
	}
	#center a.son_cate_none:hover{
		text-decoration: none;
	}


	</style>
	<div id='location'>
		<a href="<?php echo @__ROOT__; ?>
?c=list&cid=0">全部分类</a>
			<?php unset($this->_sections['n']);
$this->_sections['n']['loop'] = is_array($_loop=$this->_tpl_vars['father_cate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['n']['name'] = 'n';
$this->_sections['n']['show'] = true;
$this->_sections['n']['max'] = $this->_sections['n']['loop'];
$this->_sections['n']['step'] = 1;
$this->_sections['n']['start'] = $this->_sections['n']['step'] > 0 ? 0 : $this->_sections['n']['loop']-1;
if ($this->_sections['n']['show']) {
    $this->_sections['n']['total'] = $this->_sections['n']['loop'];
    if ($this->_sections['n']['total'] == 0)
        $this->_sections['n']['show'] = false;
} else
    $this->_sections['n']['total'] = 0;
if ($this->_sections['n']['show']):

            for ($this->_sections['n']['index'] = $this->_sections['n']['start'], $this->_sections['n']['iteration'] = 1;
                 $this->_sections['n']['iteration'] <= $this->_sections['n']['total'];
                 $this->_sections['n']['index'] += $this->_sections['n']['step'], $this->_sections['n']['iteration']++):
$this->_sections['n']['rownum'] = $this->_sections['n']['iteration'];
$this->_sections['n']['index_prev'] = $this->_sections['n']['index'] - $this->_sections['n']['step'];
$this->_sections['n']['index_next'] = $this->_sections['n']['index'] + $this->_sections['n']['step'];
$this->_sections['n']['first']      = ($this->_sections['n']['iteration'] == 1);
$this->_sections['n']['last']       = ($this->_sections['n']['iteration'] == $this->_sections['n']['total']);
?>
			<?php if ($this->_sections['n']['last']): ?>
			&gt;&nbsp;<?php echo $this->_tpl_vars['father_cate'][$this->_sections['n']['index']]['title']; ?>
&nbsp;&nbsp;
			<?php else: ?>
			&gt;&nbsp;<a href="<?php echo @__ROOT__; ?>
?c=list&cid=<?php echo $this->_tpl_vars['father_cate'][$this->_sections['n']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['father_cate'][$this->_sections['n']['index']]['title']; ?>
</a>&nbsp;&nbsp;
			<?php endif; ?>
			<?php endfor; endif; ?>
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
				<?php unset($this->_sections['m']);
$this->_sections['m']['loop'] = is_array($_loop=$this->_tpl_vars['son_cate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['m']['name'] = 'm';
$this->_sections['m']['show'] = true;
$this->_sections['m']['max'] = $this->_sections['m']['loop'];
$this->_sections['m']['step'] = 1;
$this->_sections['m']['start'] = $this->_sections['m']['step'] > 0 ? 0 : $this->_sections['m']['loop']-1;
if ($this->_sections['m']['show']) {
    $this->_sections['m']['total'] = $this->_sections['m']['loop'];
    if ($this->_sections['m']['total'] == 0)
        $this->_sections['m']['show'] = false;
} else
    $this->_sections['m']['total'] = 0;
if ($this->_sections['m']['show']):

            for ($this->_sections['m']['index'] = $this->_sections['m']['start'], $this->_sections['m']['iteration'] = 1;
                 $this->_sections['m']['iteration'] <= $this->_sections['m']['total'];
                 $this->_sections['m']['index'] += $this->_sections['m']['step'], $this->_sections['m']['iteration']++):
$this->_sections['m']['rownum'] = $this->_sections['m']['iteration'];
$this->_sections['m']['index_prev'] = $this->_sections['m']['index'] - $this->_sections['m']['step'];
$this->_sections['m']['index_next'] = $this->_sections['m']['index'] + $this->_sections['m']['step'];
$this->_sections['m']['first']      = ($this->_sections['m']['iteration'] == 1);
$this->_sections['m']['last']       = ($this->_sections['m']['iteration'] == $this->_sections['m']['total']);
?>
				<?php if ($this->_tpl_vars['son_cate'][$this->_sections['m']['index']]['cid'] == $_GET['cid']): ?>
						<li>
						<a class='son_cate_none' ><?php echo $this->_tpl_vars['son_cate'][$this->_sections['m']['index']]['title']; ?>
</a>
						</li>
				<?php else: ?>
						<li>
						<a href="<?php echo @__ROOT__; ?>
?c=list&cid=<?php echo $this->_tpl_vars['son_cate'][$this->_sections['m']['index']]['cid']; ?>
"><?php echo $this->_tpl_vars['son_cate'][$this->_sections['m']['index']]['title']; ?>
</a>
						</li>
				<?php endif; ?>
					
				<?php endfor; endif; ?>	
					
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li class='<?php if ($_GET['where'] == 0): ?>on<?php else: ?><?php endif; ?>'>
						<a href="<?php echo @__ROOT__; ?>
?c=list&cid=<?php echo $_GET['cid']; ?>
&where=0">待解决问题</a>
					</li>
					<li  class='<?php if ($_GET['where'] == 1): ?>on<?php else: ?><?php endif; ?>'>
						<a href="<?php echo @__ROOT__; ?>
?c=list&cid=<?php echo $_GET['cid']; ?>
&where=1">已解决</a>
					</li>
					<li class='<?php if ($_GET['where'] == 2): ?>on<?php else: ?><?php endif; ?>'>
						<a href="<?php echo @__ROOT__; ?>
?c=list&cid=<?php echo $_GET['cid']; ?>
&where=2">高悬赏</a>
					</li>
					<li class='<?php if ($_GET['where'] == 3): ?>on<?php else: ?><?php endif; ?>'>
						<a href="<?php echo @__ROOT__; ?>
?c=list&cid=<?php echo $_GET['cid']; ?>
&where=3">零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
						<?php $_from = $this->_tpl_vars['what']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
						<tr>
							<td class='t1 cons'>
								<a href="<?php echo @__ROOT__; ?>
?c=show&asid=<?php echo $this->_tpl_vars['v']['asid']; ?>
">
									<b><?php echo $this->_tpl_vars['v']['reward']; ?>
</b><?php echo $this->_tpl_vars['v']['content']; ?>
</a>&nbsp;&nbsp;[<?php echo $this->_tpl_vars['v']['title']; ?>
]
							</td>
							<td><?php echo $this->_tpl_vars['v']['answer']; ?>
</td>
							<td><?php echo $this->_tpl_vars['v']['time']; ?>
</td>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
				</table>

			</div>
		</div>

		<!-- 右侧 -->
			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../common/right.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 廖东廷</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="<?php echo @__PUBLIC__; ?>
/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->